<?php
/*
 * @Author: 李志刚
 * @CopyRight: 2020-2030 衡水山木枝技术服务有限公司
 * @Date: 2021-10-19 15:24:31
 * @Description: 门店商品分类关联商品表
 * @LastEditors: 李志刚
 * @LastEditTime: 2021-10-20 10:29:53
 * @FilePath: /qingshanERP/database/migrations/b2b/base/2021_10_19_152416_create_good_category_table.php
 */

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateGoodCategoryTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('good_category', function (Blueprint $table) {
            $table->engine = 'InnoDB';
            $table->foreignId('good_id')->comment('商品ID');
            $table->foreignId('category_id')->comment('分类ID');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('good_category');
    }
}
